package com.seecoder.BlueWhale.serviceImpl.calPriceStrategy;

public class CalPriceContext {
    private final CalculateStrategy calculateStrategy;

    public CalPriceContext(CalculateStrategy calculateStrategy) {
        this.calculateStrategy = calculateStrategy;
    }

    public double calPrice(double price) {
        return calculateStrategy.calculate(price);
    }

}